//
//  CommentModel.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/9/2.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "CommentModel.h"

@implementation CommentModel

- (instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        self.content = dict[@"content"];
        self.formatCreateDate = dict[@"formatCreateDate"];
        self.ID = [dict[@"id"] integerValue];
        self.orderNo = dict[@"orderNo"];
        self.portraitUrl = dict[@"portraitUrl"];
        self.portraitUrl = dict[@"portraitUrl"];
        self.productNo = dict[@"productNo"];
        self.starLevel = [dict[@"starLevel"] integerValue];
        self.userId = [dict[@"userId"] integerValue];
        self.userName = dict[@"userName"];
    }
    return self;
}

+ (instancetype)objectWithDict:(NSDictionary *)dict
{
    return [[CommentModel alloc]initWithDict:dict];
}


@end
